#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/select.h>
#include <sys/time.h>
#include <errno.h>

// 宏定义------LED灯
#define LED0_OFF _IO('x', 0)
#define LED1_OFF _IO('x', 1)
#define LED2_OFF _IO('x', 2)
#define LED3_OFF _IO('x', 3)

#define LED_PATH "/dev/Led"

int main()
{
    int led_fd;
    // 打开LED模块
    led_fd = open(LED_PATH, O_RDWR);
    if (led_fd == -1)
    {
        // perror("LED打开失败");
        return -1;
    }
    ioctl(led_fd, LED0_OFF, 1);
    ioctl(led_fd, LED1_OFF, 1);
    ioctl(led_fd, LED2_OFF, 1);
    ioctl(led_fd, LED3_OFF, 1);
}
